// import Http from "./Http"

export default class AxiosHttp {
  
  instance: any;

  constructor(baseURL: string) {
    // super(baseURL);
    // this.instance = Axios.create({
    //   baseURL: baseURL,
    //   timeout: 1000 * 10, 
    // })
  }

  get(url: string, options: object): Promise<any> {
    return new Promise<any>(async (resolve, reject) => {
      try {
        let response = await this.instance.get(url, options)
        resolve(response)
      } catch (e) {
        reject(e)
      }
    })
  }

}